#!/dash
# 重启bjstk
pid=`ps aux | grep ob-web.jar | grep -v grep | awk '{print $2}'`
echo "进程ID : " $pid
kill -9 $pid
echo "进程" $pid "已被杀死"
echo "开始重启 OB-SERVER 服务器, 注意修改文件路径"
nohup java -Xms512m -Xmx512m -jar /usr/local/open-blog/ob-server/ob-web.jar &
echo "OB-SERVER 正在启动,请查看日志 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓"
